<?php (defined('BASEPATH')) OR exit('No direct script access allowed');

/**
 * @author Anh Nguyen <duyanhnguyen@vccorp.vn>
 * @copyright 2012
 */

class Service_model extends MX_Controller
{

    public function getPost($type, $langCode)
    {
        $this->db->select("name_$langCode as name, content_$langCode as content");
        $this->db->from('service');
        $this->db->where('type', $type);
        $this->db->limit(1);
        $rs = $this->db->get();
        $return = $rs->result_array();
        $rs->free_result();
        return $return;
    }

}

?>
